new Vue({
   el:"#fquestion",
    data:{
        liere:[
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon1.png",h3:"申请售后服务",span:"一键预约，快速维修"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon2.png",h3:"订单查询",span:"购物信息，快速搜索"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon3.png",h3:"小米账户",span:"重置密保，安全验证"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon4.png",h3:"保障服务",span:"碎屏延保，双重保障"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon5.png",h3:"以旧换新",span:"便捷交易，价格保障"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon6.png",h3:"付费服务",span:"安装服务，手机维修"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon7.png",h3:"售后政策",span:"条款说明，安心保障"},
            {img:"//i1.mifile.cn/f/i/2018/service/selfservice_icon8.png",h3:"查询真伪",span:"辨别真伪，放心使用"}
        ]
    }

});

new Vue({
    el:"#fquestio",
    data:{
        liereq:[
            {img:"https://i1.mifile.cn/a4/cms_15282570579344_TPFxD.jpg",span:"小米手机"},
            {img:"https://i1.mifile.cn/a4/cms_15416752510336_elnci.png",span:"红米手机"},
            {img:"https://i1.mifile.cn/a4/cms_15416701292793_LGpFM.jpg",span:"小米平板"},
            {img:"https://i1.mifile.cn/a4/cms_14670157878726_pNeqZ.jpg",span:"智能硬件"},
            {img:"https://i1.mifile.cn/a4/cms_14670147822275_kgiNB.jpg",span:"小米电视"},
            {img:"https://i1.mifile.cn/a4/cms_14670147949246_EyuXz.jpg",span:"小米盒子"},
            {img:"https://i1.mifile.cn/a4/cms_1467014811346_KQdOm.jpg",span:"小米路由器"},
            {img:"https://i1.mifile.cn/a4/cms_14696085838228_nXTxc.jpg",span:"小米笔记本及周边产品"}
        ]
    }

});

var li1 = document.querySelector(".li1");
var none1 = document.querySelector(".none");
var hid = document.querySelector(".hidi");
li1.addEventListener("mouseover",function(){
    hid.style.display = "block";
    none1.style.display = " none";
});
li1.addEventListener("mouseout",function(){
    hid.style.display = "none";
    none1.style.display = " block";
});

var search_content = document.querySelector(".search-content");
var search_btn = document.querySelector(".search-btn");
var tip = document.querySelector(".tip");

search_btn.addEventListener("click",function(){
    if(search_content.value == ""){
        tip.style.display = "block";
    }else if(search_content.value != ""){
        tip.style.display = "none";
    }
});





